#include"stack.h"

int main() {
	Stack s;
	InitStack(&s);
	pushStack(&s, 1);
	pushStack(&s, 2);
	pushStack(&s, 3);
	while (!IsEmpty(&s)) {
		printf("%d ", getpopStack(&s));
		popStack(&s);
	}
	pushStack(&s, 4);
	pushStack(&s, 5);
	while (!IsEmpty(&s)) {
		printf("%d ", getpopStack(&s));
		popStack(&s);
	}
	pushStack(&s, 6);
	while (!IsEmpty(&s)) {
		printf("%d ", getpopStack(&s));
		popStack(&s);
	}

	DestroyStack(&s);
	return 0;
}